package com.oamicnet.serviceone.api.account;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "service-one")
public interface AccountInfoApi {

    @PutMapping("/api/accounts/{accountCode}/balance")
    int updateBalance(@PathVariable("accountCode") String accountCode, @RequestParam("amount") Double amount);
}
